package org.jianfa.mq.seckill.service;

import org.jianfa.mq.seckill.entity.po.OrderInfo;
import org.jianfa.mq.seckill.rocketmq.SeckillMessage;

public interface SeckillService {

    OrderInfo seckill(SeckillMessage seckillMessage);

    long getSeckillResult(Long userId, long goodsId);

    boolean getGoodsOver(long goodsId);

    void setGoodsOver(long goodsId);
}
